package com.sy.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sy.blog.dao.pojo.Tag;
import com.sy.blog.vo.TagVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagMapper extends BaseMapper<Tag> {

    /**
     * 根据文章id多表查询出文章的标签
     * @param articleId
     * @return
     */
    List<Tag> findTagsByArticleId(@Param("articleId") Long articleId);

    List<Long> findHotTagsId(@Param("limit") int limit);

    List<Tag> findHotTagsByTagIds(@Param("hotIds") List<Long> hotIds);
}
